package com.junxonline.plat;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.stereotype.Component;

/**
 * @ClassName: PlatApplication
 * @Description: 管理平台启动类
 * @author JunX
 */

@SpringBootApplication
@ComponentScan(basePackages = {"com.junxonline"})
public class PlatApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(PlatApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(PlatApplication.class);
    }
}
